﻿<Window x:Class="OS.GenericDashboardViewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ns="clr-namespace:OS.GenericDashboardViewer.WPF"
        xmlns:local="clr-namespace:OS.GenericDashboardViewer.DataModel"
          WindowState="Maximized" WindowStyle="None">
    <Window.Resources>
        <ns:PartViewDataTemplateSelector  x:Key="ViewPartTemplateSelector" />
      

    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.1*" />
            <ColumnDefinition Width="0.1*" />
            <ColumnDefinition Width="0.1*" />
            <ColumnDefinition Width="0.7*" />
        </Grid.ColumnDefinitions>
        
            <Button Grid.Row="0" Grid.Column="1" Command="{Binding MoveToNext}">Next</Button>
            <Button Grid.Row="0" Grid.Column="0" Command="{Binding MoveToPrevious}">Previous</Button>
        <Button Grid.Row="0" Grid.Column="2" Command="{Binding Stop}">
            <TextBlock Text="{Binding PauseButton}" />
        </Button>
        <ComboBox  Grid.Row="0" Grid.Column="3" ItemsSource="{Binding ViewParts}" SelectedItem="{Binding SelectedViewPart}">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Caption}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <ContentControl Grid.Row="1" Grid.ColumnSpan="4" Content="{Binding SelectedViewPart}" ContentTemplateSelector="{StaticResource ResourceKey=ViewPartTemplateSelector}">
           
        </ContentControl>

    
    </Grid>
</Window>
